2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_RESOURCEEDITORPANEL_JUCEHEADER__
27 #define __JUCER_RESOURCEEDITORPANEL_JUCEHEADER__
29 #include "../model/jucer_JucerDocument.h"
33 //==============================================================================
36 class ResourceEditorPanel
: public Component
,
37 private TableListBoxModel
,
38 private ChangeListener
,
39 private ButtonListener
42 //==============================================================================
43 ResourceEditorPanel (JucerDocument
& document
);
44 ~ResourceEditorPanel();
47 void visibilityChanged();
48 void changeListenerCallback (ChangeBroadcaster
*);
49 void buttonClicked (Button
*);
52 void paintRowBackground (Graphics
& g
, int rowNumber
, int width
, int height
, bool rowIsSelected
);
53 void paintCell (Graphics
& g
, int rowNumber
, int columnId
, int width
, int height
, bool rowIsSelected
);
54 Component
* refreshComponentForCell (int rowNumber
, int columnId
, bool isRowSelected
, Component
* existingComponentToUpdate
);
55 int getColumnAutoSizeWidth (int columnId
);
56 void sortOrderChanged (int newSortColumnId
, bool isForwards
);
57 void selectedRowsChanged (int lastRowSelected
);
60 JucerDocument
& document
;
61 TableListBox
* listBox
;
62 TextButton
* addButton
;
63 TextButton
* reloadAllButton
;
64 TextButton
* delButton
;
70 #endif // __JUCER_RESOURCEEDITORPANEL_JUCEHEADER__